<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8"%>
<%@ include file="/WEB-INF/views/admin/app_base.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="keywords" content="" />
    <meta name="description" content="" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="format-detection" content="telephone=no" />
    <meta content="email=no" name="format-detection" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <%@ include file="/WEB-INF/views/admin/app_js_css.jsp"%>
    <!--引入 lrz 插件 用于压缩图片-->
    <script type="text/javascript" src="<%=basePath%>/static/admin/app/js/localResizeIMG/lrz.bundle.js"></script>
    <script rel="script" src="<%=basePath%>/static/admin/app/js/fileUpload.js"></script>
    <script rel="script" src="<%=basePath%>/static/admin/app/js/pay.js"></script>
    <title>支付管理</title>
</head>
<body>
<div class="viewport">
<header>
    <div class="header-title">
      <a href="<%=basePath%>/admin/order/${pay.orderId }/details" class="return"><i class="iconfont"></i>返回</a>
      <h2>支付信息</h2>
    </div>
</header>
<section>
<form role="form">
	<div class="state-type-info">
        <span>订单号：${order.id }</span>
        <span>应付总额：￥${order.totalAmount }</span>
        <span>已支付：￥${order.payAmount }</span>
        <span>待支付：￥${order.noPayAmount }</span>
    </div>
	<div class="form-box">
		<input id="orderId" type="hidden" class="form-control" value="${pay.orderId }">
		<input id="ts" type="hidden" class="form-control" value="${order.ts }">
		<input id="buyerCode" type="hidden" class="form-control" value="${order.buyerCode }">
		<input id="buyerName" type="hidden" class="form-control" value="${order.buyerName }">
		<input id="noPayAmount" type="hidden" class="form-control" value="${order.noPayAmount }">
        <div class="form-group">
            <label>支付方式</label>
            <input id="payMethodName" type="text" class="form-control"  readonly value="${pay.payMethodName }">
            <input id="payMethod" type="hidden" class="form-control"  readonly value="${pay.payMethod }">
        <div class="form-group">
            <label><em class="red">*</em>支付账号</label>
            <input id="payAccount" type="text" class="form-control"  placeholder="请输入支付账号" value="${pay.payAccount }">
        </div>
        <div class="form-group">
            <label><em class="red">*</em>支付金额<em class="red">(金额是负数，表示退款)</em></label>
            <input id="payMoney" type="text" class="form-control"  placeholder="请输入支付金额" value="${pay.payMoney }">
        </div>
        </div>
        <div class="form-group">
            <label>支付截图</label>
            <a class="upload-file-btn">
                <i class="iconfont"></i>
                <img id="payPicImage" src="${pay.payPic }" width="98" height="100"/>
                <input id="payPic" type="file" class="upload_file" onchange="ajaxFileUpload('/${user.loginName }/upload/pay','payPic','payPicImage')"/>
            </a>
        </div>
        <div class="form-group">
            <label>备注</label>
            <textarea id="remark" class="form-control" rows="5" placeholder="请填写订单备注信息">${pay.remark }</textarea>
        </div>
        <div class="step-btn-box">
             <a id="savePayBtn" class="step-btn">提交</a>
        </div>
	</div>
</form>
</section>
</div>
</body>
</html>